import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Component({
  selector: 'app-protocol',
  templateUrl: './protocol.component.html',
  styleUrls: ['./protocol.component.less']
})

export class ProtocolComponent implements OnInit {
  @Input() visible;
  @Input() userAgree;
  @Output() userAgreeChange =  new EventEmitter<boolean>();
  @Output() visibleChange =  new EventEmitter<boolean>();
  constructor() { }
  ngOnInit() {}
  agreepro() {
    this.userAgreeChange.emit(true);
    this.closeProtocol();
  }
  closeProtocol() {
    this.visible = false;
    this.visibleChange.emit(false);
  }

}
